<?php
/**
 *Template Name: Service template
 */
get_header();
get_template_part( 'slider2' );

$pageId = $post->ID;
$page 	= get_page($pageId);
?>
	<div class="content">
		<div class="template clear-fix" id="casestudy">
			
			<div class="tpl-left">
				<div class="heading-1 clear-fix">
					<h2>Services</h2>
				</div>
				<div id="service-list">
				<?php
				$menu=wp_nav_menu( array( 'theme_location' => 'secondary',
											 'container'   => false,
										      'items_wrap' => '<ul id="lstSupport">%3$s</ul>',
												 'echo'    => 0) );				
				$menu=preg_replace('/(<li.*?class=".*?)current-menu-item([^"]*?")/','$1current-service$2',$menu,1);
				echo $menu;
				?>
				</div>
			</div>
			<div class="tpl-right">
				<div class="heading clear-fix">
					<h2><?php echo $page->post_title;?></h2>
				</div>
				<?php 				
					if (has_post_thumbnail( $pageId )){
						$image = wp_get_attachment_image_src( get_post_thumbnail_id( $pageId ), 'single-post-thumbnail' );
						echo '<img class="imgTemp" src="'.$image[0].'" alt="" />';
					}
					$page = apply_filters('the_content',$page->post_content);				
					echo $page;
				?>								
			</div>
			
		</div>
	</div>
<script>
	jQuery(document).ready(function(){
	 jQuery(".menu-item-103").addClass('menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-103 current_page_item menu-item-103 current-service');
	 });
</script>	
<?php get_footer(); ?>